package com.brillilab.service.core.instrument.impl;

import com.brillilab.dao.mapper.instrument.InstrumentAccessGroupMapper;
import com.brillilab.domain.po.instrument.InstrumentAccessGroup;
import com.brillilab.service.core.instrument.IInstrumentAccessGroupService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * <p>
 * 仪器可使用组 服务实现类
 * </p>
 *
 * @author WuMenghao
 * @since 2019-06-12
 */
@Service
@Transactional
public class InstrumentAccessGroupServiceImpl implements IInstrumentAccessGroupService {

    @Resource
    private InstrumentAccessGroupMapper accessGroupMapper;

    @Override
    public int insert(InstrumentAccessGroup group) {
        return accessGroupMapper.insert(group);
    }

    @Override
    public InstrumentAccessGroup selectById(Long id) {
        return accessGroupMapper.selectById(id);
    }
}
